package com.bRoom.service;

import com.bRoom.common.ServerResponse;
import com.bRoom.pojo.Category;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ICategoryService {

    ServerResponse<Category> addCategory(Category category);

    ServerResponse<Category> updateCategory(Category category);

    ServerResponse<PageInfo> categoryList(int pageSize, int pageNum);

    ServerResponse categoryDetail(Integer categoryId);

    ServerResponse<List<Category>>  fingCategoryId(Integer parentId);

    ServerResponse finddeepChildrenCategory(Integer categoryId);
}
